package com.yonyou.cyxdms.sysAuth.service.dto.role;

import com.yonyou.cyx.function.utils.bean.BeanMapperUtil;
import com.yonyou.cyxdms.framework.bean.dto.base.DMSBaseDTO;
import com.yonyou.cyx.framework.bean.entity.base.BasePO;
import java.io.Serializable;
import java.time.LocalDateTime;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.yonyou.cyx.function.utils.jsonserializer.localdatetime.JsonLocalDateTimeDeserializer;
import com.yonyou.cyx.function.utils.jsonserializer.localdatetime.JsonLocalDateTimeSerializer;


/**
 * <p>
 * 角色职责
 * </p>
 *
 * @author 李贺
 * @since 2019-09-18
 */

public class RolePositionDTO extends DMSBaseDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * EMPLOYEE_ROLE_ID
     */
        private Long rolePositionId;
        /**
     * 是否销售顾问,是否试车员,是否服务顾问,是否技师,是否可以领料,是否检验员,是否保险专员,是否续保专员,是否定保专员,是否装潢专员,是否DCRC专员
     */
        private Integer positionCode;
            private Long roleId;
            private Boolean isDeleted;
    
    public RolePositionDTO() {
        super();
    }




    public Long getRolePositionId() {
        return rolePositionId;
    }


    public void setRolePositionId(Long rolePositionId) {
        this.rolePositionId = rolePositionId;
    }



    public Integer getPositionCode() {
        return positionCode;
    }


    public void setPositionCode(Integer positionCode) {
        this.positionCode = positionCode;
    }



    public Long getRoleId() {
        return roleId;
    }


    public void setRoleId(Long roleId) {
        this.roleId = roleId;
    }



    public Boolean getDeleted() {
        return isDeleted;
    }


    public void setDeleted(Boolean isDeleted) {
        this.isDeleted = isDeleted;
    }



    @Override
    public String toString() {
        return "RolePositionDTO{" +
        "rolePositionId=" + rolePositionId +
        ", positionCode=" + positionCode +
        ", roleId=" + roleId +
        ", isDeleted=" + isDeleted +
        "}";
    }
    /**
     * 将DTO 转换为PO
     * //对某个对象属性进行赋值
     * //BeanMapperUtil.populateValueByMethod(transPO,"setXxx",this.getXxx);
     * @param poClass dto 需要转换的dto
     * @author 李贺
     * @since 2018/7/22 0022
     */
    @Override
    public <T extends BasePO> T transDtoToPo(Class<T> poClass) {
        return super.transDtoToPo(poClass);
    }

    /**
     * 将DTO 转换为PO
     * BeanMapperUtil.populateValueByMethod(transPO,"setXxx",this.getXxx);
     * @param po 需要转换的对象
     * @author 李贺
     * @since 2018/7/22 0022
     */
    public <T extends BasePO> void transDtoToPo(T po) {
        BeanMapperUtil.copyProperties(this, po, "rolePositionId");
    }

}
